#include "zhongdun_xa_msgDef.h"
#include <string.h>

MSG_START_REQ::MSG_START_REQ():
equipmentId_(0),
version_(0)
{
    memset(date_, 0, sizeof(date_));
}

MSG_START_ACK::MSG_START_ACK():
result_(0)
{
}

MSG_CONFIG_REPORT_REQ::MSG_CONFIG_REPORT_REQ():
equipmentId_(0),
frequency_(0),
power_(0)
{
}

MSG_CONFIG_REPORT_ACK::MSG_CONFIG_REPORT_ACK():
result_(0)
{
}

MSG_SET_DATETIME_REQ::MSG_SET_DATETIME_REQ()
{
    memset(date_, 0, sizeof(date_));
    memset(time_, 0, sizeof(time_));
}

MSG_SET_DATETIME_ACK::MSG_SET_DATETIME_ACK():
result_(0)
{
}

MSG_SET_BTS_REQ::MSG_SET_BTS_REQ():
frequency_(0),
power_(0),
rac_(0),
lacUpdateCircle_(0)
{
}

MSG_SET_BTS_ACK::MSG_SET_BTS_ACK():
result_(0)
{
}

MSG_USER_REPORT_REQ::MSG_USER_REPORT_REQ():
sequenceNumber_(0),
timestamp_(0),
tmsi_(0),
lac_(0),
equipmentID_(0)
{
    memset(imsi_, 0, sizeof(imsi_));
    memset(imei_, 0, sizeof(imei_));
}

MSG_GET_HISTORY_REQ::MSG_GET_HISTORY_REQ():
sequenceNumber_(0)
{
    memset(dateTime_, 0, sizeof(dateTime_));
}

MSG_GET_HISTORY_ACK::MSG_GET_HISTORY_ACK():
result_(0),
sequenceNumber_(0),
timestamp_(0),
tmsi_(0),
lac_(0),
equipmentID_(0)
{
    memset(imsi_, 0, sizeof(imsi_));
    memset(imei_, 0, sizeof(imei_));
}

MSG_HEARTBEAT_REQ::MSG_HEARTBEAT_REQ():
btsid_(0)
{
}

HISTORY_INFO_RECORD::HISTORY_INFO_RECORD(char *date, uint32_t seqNum)
{
    memcpy(dataTime_, date, 8);
    sequence_ = seqNum;
}

MSG_WARNING_REQ::MSG_WARNING_REQ():
warningType_(0)
{
}

MSG_RESET_REQ::MSG_RESET_REQ()
{
}

MSG_RESET_ACK::MSG_RESET_ACK()
{
}

MSG_SET_CONTROL_REQ::MSG_SET_CONTROL_REQ():
mode_(0),
count_(0),
number_(0),
locateType_(0)
{
    memset(imsiOrImei_, 0, sizeof(imsiOrImei_));
}

MSG_SET_CONTROL_ACK::MSG_SET_CONTROL_ACK():
mode_(0),
result_(0)
{
}

MSG_CONTROL_OPTION_REQ::MSG_CONTROL_OPTION_REQ():
mode_(0),
submode_(0),
locateType_(0)
{
    memset(imsiOrImei, 0, sizeof(imsiOrImei));
    memset(moNumber_, 0, sizeof(moNumber_));
    memset(info_, 0, sizeof(info_));
}

MSG_CONTROL_OPTION_ACK::MSG_CONTROL_OPTION_ACK():
mode_(0),
subMode_(0),
result_(0)
{
}

MSG_RSSI_REPORT_REQ::MSG_RSSI_REPORT_REQ():
timeStamp_(0),
equipment_(0),
rssi_(0)
{
    memset(imsi_, 0, sizeof(imsi_));
    memset(imei_, 0, sizeof(imei_));
}

MSG_SMS_RECV_REQ::MSG_SMS_RECV_REQ():
timeStamp_(0)
{
    memset(imsi_, 0, sizeof(imsi_));
    memset(imei_, 0, sizeof(imei_));
    memset(number_, 0, sizeof(number_));
    memset(content_, 0, sizeof(content_));
}

MSG_CALL_RECV_REQ::MSG_CALL_RECV_REQ():
timeStamp_(0)
{
    memset(imsi_, 0, sizeof(imsi_));
    memset(imei_, 0, sizeof(imei_));
    memset(number_, 0, sizeof(number_));
}

MSG_GET_VERSION::MSG_GET_VERSION()
{
}

MSG_GET_VERSION_ACK::MSG_GET_VERSION_ACK()
{
    memset(version_, 0, sizeof(version_));
    memset(date_, 0, sizeof(date_));
}

MSG_SEND_PACKET::MSG_SEND_PACKET():
sn_(0),
length_(0)
{
    memset(data_, 0, sizeof(data_));
    memset(crc_, 0, sizeof(crc_));
}

MSG_SEND_PACKET_ACK::MSG_SEND_PACKET_ACK():
result_(0)
{
}

MSG_DOWNLOAD_END::MSG_DOWNLOAD_END()
{
}

MSG_GET_HISTORY_INFOMATION_REQ::MSG_GET_HISTORY_INFOMATION_REQ()
{
}

HISTORY_INFO_RECORD::HISTORY_INFO_RECORD():
sequence_(0)
{
    memset(dataTime_, 0, sizeof(dataTime_));
}

MSG_GET_HISTORY_INFOMATION_ACK::MSG_GET_HISTORY_INFOMATION_ACK()
{
}

MSG_SEND_RECORD_SELECT::MSG_SEND_RECORD_SELECT()
{
    memset(date_, 0, sizeof(date_));
}

MSG_SEND_RECORD_SELECT_ACK::MSG_SEND_RECORD_SELECT_ACK():
result_(0),
fileSize_(0)
{
}

MSG_SEND_RECORD_REQ::MSG_SEND_RECORD_REQ():
sn_(0)
{
}

MSG_SEND_RECORD_ACK::MSG_SEND_RECORD_ACK():
sn_(0),
num_(0)
{
    memset(data_, 0, sizeof(data_));
    memset(crc_, 0, sizeof(crc_));
}

MSG_SEND_RECORD_END::MSG_SEND_RECORD_END()
{
}

MSG_GET_BTS_INFO_REQ::MSG_GET_BTS_INFO_REQ()
{
}

MSG_GET_BTS_INFO_ACK::MSG_GET_BTS_INFO_ACK():
arfcn_(0),
power_(0),
rac_(-110),
luc_(0)
{
}

MSG_GET_TIME_REQ::MSG_GET_TIME_REQ()
{
}

MSG_GET_TIME_ACK::MSG_GET_TIME_ACK():
timeStame_(0)
{
}

MSG_DELETE_USERDATA_REQ::MSG_DELETE_USERDATA_REQ()
{
}

MSG_DELETE_USERDATA_ACK::MSG_DELETE_USERDATA_ACK():
result_(0)
{
}

MSG_RF_POWER_REQ::MSG_RF_POWER_REQ():
onOfOff_(0)
{
}

MSG_RF_POWER_ACK::MSG_RF_POWER_ACK()
{
}

MSG_SCAN_REQ::MSG_SCAN_REQ():
equipmentId_(0),
operatorsId_(0)
{
}

SCAN_NEIGH_INFO::SCAN_NEIGH_INFO():
neighbourFrequency_(0)
{
}

SCAN_BEST_FREQ_INFO::SCAN_BEST_FREQ_INFO():
bestFrequency_(0)
{
}

MSG_SCAN_ACK::MSG_SCAN_ACK():
neighbourFrequencyTotle_(0),
bestFrequencyTotle_(0),
equipmentId_(0)
{
}

XML_SCAN_BCCH_INFO::XML_SCAN_BCCH_INFO():
frequency_(0),
rssi_(0),
agent_(0),
nebFreqTotle_(0)
{
    memset(nebFreq_, 0, sizeof(nebFreq_));
}

MSG_XML_SCAN_ACK::MSG_XML_SCAN_ACK():
equipmentID1_(0),
equipmentID2_(0),
eqNum_(0),
result_(0),
endSet_(0),
packNum_(0),
bcchCnt_(0)
{
}

MSG_GPSINFO_REQ::MSG_GPSINFO_REQ():
btsId_(0),
cpuUtil_(0),
memUtil_(0),
sdUtil_(0),
temp_(0),
powerStat_(-1),
g3CardStat_(-1),
wifiStat_(-1),
paSata(0),
att_(0),
paOut_(0),
uiYear_(0),
uiMounth_(0),
uiDayOfWeek(0),
uiDay_(0),
uiHour_(0),
uiMinute_(0),
uiSecond_(0),
uiMilliseconds_(0),
status_(1),
lat_(0.0),
latHemi_(0),
long_(0.0),
longHemi_(0),
speed_(0.0),
course_(0.0),
magDeg(0.0),
dierction(0)
{
}

